package com.guoxue.domain;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import org.hibernate.annotations.GenericGenerator;

/**
 * 由工具生成的java类,手工修改无效!
 * 
 * 
 */
@Entity
@Table(name = "ClientToServerVo")
public class ClientToServerVo implements Cloneable, Serializable {
	// /////////////////////////////////////////////////////////////////////////////
	// --->字段定义:                                                                //
	// /////////////////////////////////////////////////////////////////////////////

	/**
	 * ID
	 */
	@Id
	@GenericGenerator(name = "generator", strategy = "identity")
	@GeneratedValue(generator = "generator", strategy = GenerationType.IDENTITY)
	private int id;
	/**
	 * 机器码
	 */
	private String jqm = "";

	/**
	 * 机型
	 */
	private String jx = "";

	/**
	 * 系统版本
	 */
	private String sysVersion = "";

	/**
	 * 用户ID
	 */
	private int uid = 0;

	/**
	 * 记录信息
	 */
	private String serverInfo = "";

	/**
	 * 记录类型
	 */
	private int isType = 0;

	/**
	 * 记录时间
	 */
	private long createTime  = (long)0;

	/**
	 *自定义规则
	 */
	private String code = "";
	
	private int sysflag = 0;

	// /////////////////////////////////////////////////////////////////////////////
	// --->getter and setter:
	// /////////////////////////////////////////////////////////////////////////////
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getJqm() {
		return jqm;
	}

	public void setJqm(String jqm) {
		this.jqm = jqm;
	}

	public String getJx() {
		return jx;
	}

	public void setJx(String jx) {
		this.jx = jx;
	}

	public String getSysVersion() {
		return sysVersion;
	}

	public void setSysVersion(String sysVersion) {
		this.sysVersion = sysVersion;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public String getServerInfo() {
		return serverInfo;
	}

	public void setServerInfo(String serverInfo) {
		this.serverInfo = serverInfo;
	}

	public int getIsType() {
		return isType;
	}

	public void setIsType(int isType) {
		this.isType = isType;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public int getSysflag() {
		return sysflag;
	}

	public void setSysflag(int sysflag) {
		this.sysflag = sysflag;
	}

	// /////////////////////////////////////////////////////////////////////////////
	// --->流读写方法和打印方法:
	// /////////////////////////////////////////////////////////////////////////////
	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder();
		final String info;

		sb.append(",id=" + this.id);
		sb.append(",jqm=" + this.jqm);
		sb.append(",jx=" + this.jx);
		sb.append(",sysVersion=" + this.sysVersion);
		sb.append(",uid=" + this.uid);
		sb.append(",serverInfo=" + this.serverInfo);
		sb.append(",isType=" + this.isType);
		sb.append(",createTime=" + this.createTime);
		sb.append(",code=" + this.code);
		sb.append(",sysflag=" + this.sysflag);
		info = sb.toString();
		return info;
	}

	

	// /////////////////////////////////////////////////////////////////////////////
	// --->clone and copy:
	// /////////////////////////////////////////////////////////////////////////////
	@Override
	public Object clone() throws CloneNotSupportedException {
		return (ClientToServerVo) super.clone();
	}

	/**
	 * 令当前对象(this)成为指定对象(src)的拷贝
	 * 对简单数据类型的数组,进行深层复制
	 * 对dataMap数据,进行dataMap的整体复制
	 * @param src
	 */
	public void copyOf(ClientToServerVo src){
		this.id = src.id;
		this.jqm = src.jqm;
		this.jx = src.jx;
		this.sysVersion = src.sysVersion;
		this.uid = src.uid;
		this.serverInfo = src.serverInfo;
		this.isType = src.isType;
		this.createTime = src.createTime;
		this.code = src.code;
		this.sysflag = src.sysflag;
	}

}
